using System;
using System.Collections.Generic;
using System.Text;

namespace TaugeLibrary.Classes
{
    public class Errors
    {
        public static string[] ErrorDatabase =  
            { "" //0
            ,"Nama user sudah pernah di pakai"  //1
            ,"Data user tidak di temukan"  //2
            };
        public static string getErrorMessage(string p_err)
        {
            if (p_err.Substring(0, 2) == "X9")
                return ErrorDatabase[Convert.ToInt32(p_err.Substring(2))];
            return p_err;
        }
    }
}
